/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.caresms.service.http.Keyword_Sms_RelationServiceSoap}.
 *
 * @author    cc
 * @see       com.caresms.service.http.Keyword_Sms_RelationServiceSoap
 * @generated
 */
public class Keyword_Sms_RelationSoap implements Serializable {
	public static Keyword_Sms_RelationSoap toSoapModel(
		Keyword_Sms_Relation model) {
		Keyword_Sms_RelationSoap soapModel = new Keyword_Sms_RelationSoap();

		soapModel.setKeySmsId(model.getKeySmsId());
		soapModel.setSmsId(model.getSmsId());
		soapModel.setKeyId(model.getKeyId());
		soapModel.setCat_Id(model.getCat_Id());
		soapModel.setField1(model.getField1());
		soapModel.setField2(model.getField2());
		soapModel.setField3(model.getField3());
		soapModel.setField4(model.getField4());
		soapModel.setField5(model.getField5());

		return soapModel;
	}

	public static Keyword_Sms_RelationSoap[] toSoapModels(
		Keyword_Sms_Relation[] models) {
		Keyword_Sms_RelationSoap[] soapModels = new Keyword_Sms_RelationSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Keyword_Sms_RelationSoap[][] toSoapModels(
		Keyword_Sms_Relation[][] models) {
		Keyword_Sms_RelationSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Keyword_Sms_RelationSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Keyword_Sms_RelationSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Keyword_Sms_RelationSoap[] toSoapModels(
		List<Keyword_Sms_Relation> models) {
		List<Keyword_Sms_RelationSoap> soapModels = new ArrayList<Keyword_Sms_RelationSoap>(models.size());

		for (Keyword_Sms_Relation model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Keyword_Sms_RelationSoap[soapModels.size()]);
	}

	public Keyword_Sms_RelationSoap() {
	}

	public long getPrimaryKey() {
		return _KeySmsId;
	}

	public void setPrimaryKey(long pk) {
		setKeySmsId(pk);
	}

	public long getKeySmsId() {
		return _KeySmsId;
	}

	public void setKeySmsId(long KeySmsId) {
		_KeySmsId = KeySmsId;
	}

	public long getSmsId() {
		return _SmsId;
	}

	public void setSmsId(long SmsId) {
		_SmsId = SmsId;
	}

	public long getKeyId() {
		return _KeyId;
	}

	public void setKeyId(long KeyId) {
		_KeyId = KeyId;
	}

	public long getCat_Id() {
		return _Cat_Id;
	}

	public void setCat_Id(long Cat_Id) {
		_Cat_Id = Cat_Id;
	}

	public String getField1() {
		return _field1;
	}

	public void setField1(String field1) {
		_field1 = field1;
	}

	public boolean getField2() {
		return _field2;
	}

	public boolean isField2() {
		return _field2;
	}

	public void setField2(boolean field2) {
		_field2 = field2;
	}

	public int getField3() {
		return _field3;
	}

	public void setField3(int field3) {
		_field3 = field3;
	}

	public Date getField4() {
		return _field4;
	}

	public void setField4(Date field4) {
		_field4 = field4;
	}

	public String getField5() {
		return _field5;
	}

	public void setField5(String field5) {
		_field5 = field5;
	}

	private long _KeySmsId;
	private long _SmsId;
	private long _KeyId;
	private long _Cat_Id;
	private String _field1;
	private boolean _field2;
	private int _field3;
	private Date _field4;
	private String _field5;
}